/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DBLayer;

import ModelLayer.Product;
import java.util.ArrayList;

/**
 *
 * @author Henrik-iMac
 */
public interface IFDBProduct {
    // Get all products
    public ArrayList<Product> getAllProducts(boolean retrieveAssociation);
    //get one product
    public Product findProductByPartNo(int partNo, boolean retrieveAssociation);
    public Product findProductByName(String name, boolean retrieveAssociation);

    //Insert a new product
    public int insertProduct(Product product);
    //Update information about a product
    public int updateProduct(Product product);
    public int updateProductAmount(Product product);
    //Delete product
    public int deleteProduct(int partNo);
}
